package com.itany.pojo;

import java.io.Serializable;
import java.util.List;

/**
 * Author：汤小洋
 * Date：2019-09-25 上午10:07
 * Description：<描述>
 */
public class Role implements Serializable {


    private Integer id;
    private String name;


    private List<Permission> permissions;


    public Role() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Permission> getPermissions() {
        return permissions;
    }

    public void setPermissions(List<Permission> permissions) {
        this.permissions = permissions;
    }

    @Override
    public String toString() {
        return "Role{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", permissions=" + permissions +
                '}';
    }
}